<template>
  <div class="blog-list">
    <h1>博客列表</h1>
    <ul>
      <li>
        <NuxtLink to="/blog/1">博客文章 1</NuxtLink>
      </li>
      <li>
        <NuxtLink to="/blog/2">博客文章 2</NuxtLink>
      </li>
      <li>
        <NuxtLink to="/blog/3">博客文章 3</NuxtLink>
      </li>
    </ul>
    <NuxtLink to="/" class="btn">返回首页</NuxtLink>
  </div>
</template>

<style scoped>
.blog-list {
  text-align: center;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 20px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

li {
  margin: 10px 0;
}

a {
  font-size: 18px;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #0056b3;
}

.btn {
  display: inline-block;
  margin: 20px;
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background: #17a2b8;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}

.btn:hover {
  background: #138496;
}
</style>
